﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CookeryBook
{
    class Ingredient
    {
        public int id { get; set; }
        public String nom { get; set; }
        public String description { get; set; }
        public Unite unite { get; set; }

        public Ingredient():this("", "", Unite.g)
        {
        }

        public Ingredient(String nom):this(nom, "", Unite.g)
        {
        }

        public Ingredient(String nom, String description): this(nom, description, Unite.g)
        {
        }

        public Ingredient(String nom, String description, Unite unite)
        {
            this.nom = nom;
            this.description = description;
            this.unite = unite;
        }

        public Ingredient(int id, String nom, String description, Unite unite)
        {
            this.id = id;
            this.nom = nom;
            this.description = description;
            this.unite = unite;
        }

    }

    enum Unite
    {
        g, ml, cl, u
    }
}
